import { GlobalEvent } from "../base/GlobalEvent";
import { ConstData } from "../base/ConstData";

const {ccclass, property} = cc._decorator;

@ccclass
export default class sceneImp extends cc.Component {

    enterScene(event ,scene:string)
    {
        GlobalEvent.emit(GlobalEvent.Event.enterScene, {SceneName: scene});
    }

    backScene()
    {
        GlobalEvent.emit(GlobalEvent.Event.backScene);
    }
}
